selectionfilter: Fix bugs in signal translation
authorMatthias Clasen <mclasen@redhat.com>
Fri, 3 Jul 2020 13:53:27 +0000 (09:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 3 Jul 2020 15:12:55 +0000 (11:12 -0400)
commitc2da2f7ecd52a60bf7ba97f0ceb64b38ea75ae0d
tree3ae296234d76086ebf19eb838fcb40835a9809db
parent54bfd380a8a494761480edd8c4469a932507c079
selectionfilter: Fix bugs in signal translation

When the position is 0, we can't check for unchanged
elements below with gtk_bitset_size_in_range. And
we don't need to, either.

And be careful when translating [start,length]
intervals to [first,last] ones. Off-by-one errors
lurk everywhere.
gtk/gtkselectionfiltermodel.c